/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "装配生产报表数据",TableName = "zpsc_report",DBServer = "SysDbContext")]
    public partial class zpsc_report:SysEntity
    {
        /// <summary>
       ///生产任务
       /// </summary>
       [Display(Name ="生产任务")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string product_task { get; set; }

       /// <summary>
       ///部门
       /// </summary>
       [Display(Name ="部门")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string depart { get; set; }

       /// <summary>
       ///车间产线
       /// </summary>
       [Display(Name ="车间产线")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string production_line { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string status { get; set; }

       /// <summary>
       ///物料号
       /// </summary>
       [Display(Name ="物料号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string product_num { get; set; }

       /// <summary>
       ///计划数量
       /// </summary>
       [Display(Name ="计划数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? plan_count { get; set; }

       /// <summary>
       ///投料数量
       /// </summary>
       [Display(Name ="投料数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? fed_count { get; set; }

       /// <summary>
       ///在制数量
       /// </summary>
       [Display(Name ="在制数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? making_count { get; set; }

       /// <summary>
       ///合格数量
       /// </summary>
       [Display(Name ="合格数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? qualified_count { get; set; }

       /// <summary>
       ///不合格数量
       /// </summary>
       [Display(Name ="不合格数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? unqualified_count { get; set; }

       /// <summary>
       ///盈亏
       /// </summary>
       [Display(Name ="盈亏")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? profit_and_loss { get; set; }

       /// <summary>
       ///完成率
       /// </summary>
       [Display(Name ="完成率")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? complete_rate { get; set; }

       /// <summary>
       ///不合格率
       /// </summary>
       [Display(Name ="不合格率")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? unqualified_rate { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string remark { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid id { get; set; }

       /// <summary>
       ///投料达成率
       /// </summary>
       [Display(Name ="投料达成率")]
       [Column(TypeName="decimal")]
       public decimal? fed_achieve_rate { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string plan_creator { get; set; }

       /// <summary>
       ///分配设备
       /// </summary>
       [Display(Name ="分配设备")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string assign_devices { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? mes_createdate { get; set; }

       /// <summary>
       ///日期
       /// </summary>
       [Display(Name ="日期")]
       [Column(TypeName="datetime")]
       public DateTime? mes_date { get; set; }

       
    }
}